package edu.sctu.practice.class01.wulixia.month09_wlx.assign03.one;

/**
 * Created by wulixia on 2015/10/22.
 * �����༸��������� Բ
 */
class Circle extends GeometricObject {
    private double radius;
    private final double PI = 3.141592654;

    public Circle(String color, double radius) {
        super(color);
        this.radius = radius;
    }

    public double findArea(){
         double circle_Area ;

         circle_Area = PI * radius* radius;
         return circle_Area;
    }

    public double findPerimeter(){
        double circle_Perimerter;

        circle_Perimerter = 2 * PI * radius;
        return circle_Perimerter;

    }
}
